package com.zhihuiyanche.dao.orders.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import com.zhihuiyanche.dao.orders.OrdersDao;
import com.zhihuiyanche.domain.Orders;

public class OrdersDaoImpl extends SqlSessionDaoSupport  implements OrdersDao{

	@Override
	public List<Orders> getOrdersByCondition(Orders orders) {
		List<Orders> ordersList = this.getSqlSession().selectList("com.zhihuiyanche.dao.orders.getOrdersByCondition", orders);
		return ordersList;
	}
	
	@Override
	public boolean saveOrdersSuccess(Orders orders) {
		return this.getSqlSession().update("com.zhihuiyanche.dao.orders.saveOrdersSuccess", orders)>0;
	}
	
	@Override
	public void insertOrders(Orders orders) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean deleteOrdersById(Orders orders) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteOrdersByCondition(Orders orders) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean updateOrdersById(Orders orders) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean updateOrdersByCondition(Map<String, Object> data) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Orders getOrdersById(Orders orders) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Orders> getOrdersAll(Orders orders) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Orders> getOrdersByPage(Orders orders) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer getOrdersByPageCount(Orders orders) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Orders> getOrdersByIds(Orders orders) {
		// TODO Auto-generated method stub
		return null;
	}

}